# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=hcraft
pkgver=1.0.0
pkgrel=4
groups=('blackarch' 'blackarch-exploitation')
pkgdesc='HTTP Vuln Request Crafter.'
arch=('x86_64' 'aarch64')
url='http://sourceforge.net/projects/hcraft/'
license=('GPL2')
source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz")
sha512sums=('7986dae6e3e735c9145e4995387a06039ee2e3dda59705a654f6d099f2f9d0e989bc60df8fb81e2858b96bd5be1eee874a185583449fcf8f705f6a892a14eb41')

build() {
  cd "$pkgname-$pkgver"

  make $pkgname
}

package() {
  cd "$pkgname-$pkgver"

  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 "$pkgname.modes" "$pkgdir/etc/$pkgname.modes"
}

